Skip to content

Fix stripe login --api-key triggering browser flow#1440

Closed
RoryGlenn wants to merge 3 commits into
stripe:masterfrom
RoryGlenn:fix/1377-login-api-key-nonbrowser
Closed

Fix stripe login --api-key triggering browser flow#1440
RoryGlenn wants to merge 3 commits into
stripe:masterfrom
RoryGlenn:fix/1377-login-api-key-nonbrowser

Conversation

@RoryGlenn
Copy link
Copy Markdown

@RoryGlenn RoryGlenn commented Feb 11, 2026

Fixes #1377.

@tomer-stripe

When the global --api-key flag is provided, stripe login now configures the CLI directly without generating a pairing code or opening the browser (better for Docker/CI/headless).

  • Routes stripe login --api-key ... to a non-browser login helper
  • Makes --interactive --api-key ... reuse the provided key instead of prompting
  • Adds unit test coverage for the new path

Tested: go test ./...

@RoryGlenn RoryGlenn requested a review from a team as a code owner February 11, 2026 00:12
@tomer-stripe
Copy link
Copy Markdown
Collaborator

Hey @RoryGlenn! Sorry for the delay, this makes sense but let me find some time to test it a bit. Out of curiosity what/why are you also adding a file github workflows?

@RoryGlenn
Copy link
Copy Markdown
Author

Hi @tomer-stripe, was trying to run the github actions locally and I accidentally committed the file. It can be ignored.

@tomer-stripe
Copy link
Copy Markdown
Collaborator

Going to close for now, can't merge with the workflow file there. Please feel free to reopen if you clean it up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

stripe cli login with api key is redirecting to the browser

2 participants